package com.tinycomment.business;

import java.util.Collection;

import com.tinycomment.dbutils.Parameter;


/*
 *@author xiaoguang.gao@oracle.com
 *@version 2013-3-11 
 */
public interface IBus<T> {
	
	public T GetModel(int key);
	public Boolean Add(T model);
	public Boolean Update(T model);
	public Boolean Delete(T model);
	
	public Collection<T> GetModelSet(String condition,Parameter[] params);
	public Collection<T> GetModelSet();

}
